﻿
(function(){
  
  var phoneReg=/^(13[0-9]|15[0|3|6|7|8|9]|18[8|9])\d{8}$/;  
  var chineseReg=/^[\u4e00-\u9fa5]*$/
  Ext.apply(Ext.form.VTypes,{  
  	phoneText:'请输入正确的手机号码',
  	phone:function(v)
  	{
  	  return phoneReg.test(v);
  	},
  	chineseText:'请输入中文',
  	chinese:function(v){
  	  return chineseReg.test(v);
  	}
  })

})()